<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j"
    template="/layout/admin_template.xhtml">

    <ui:define name="body">
    	<h:form>
    		<h:commandButton value="#{messages.add_msg}" action="e_embed" immediate="true"/>    		
    		<rich:dataGrid id="ut_id" columns="3" value="#{kEmbedListManager.embedList}" var="e" elements="12" width="100%">
    			<table width="100%" >
    				<tr>
						<td align="left" valign="top">
							<a:outputPanel id="active_">
								<a:commandLink action="#{kEmbedListManager.ca(e)}" reRender="active_" immediate="true">
			   						<h:graphicImage value="/img/#{e.active?'star':'star-empty'}.png" 
			   							title="#{messages.active_msg}" alt="#{messages.active_msg}" />
								</a:commandLink>
							</a:outputPanel>
						</td>
					</tr>
    				<tr>
    					<td align="center" class="b">
		                	<h:commandLink action="#{kEmbedListManager.edit(e.id)}" value="#{e.getName(klang)}" 
		                		title="#{messages.edit_msg}" immediate="true" />
    					</td>
    				</tr>
    				<tr>
    					<td >
		                	<div class="k-video">
				   				<div style="width: 301px; height: 182px;position: relative;top: 7px;left: 15px;">
									<iframe height="182" frameborder="0" width="300" allowfullscreen="" src="#{e.url}"></iframe>
								</div>
								<div style="position: relative;top: 20px;left: 15px;width: 280px;height: 20px;background: #B3000B;" >
									<h:outputText value="#{e.getName(kUser.klang)}" styleClass="fs14"/>
								</div>
				   			</div>
    					</td>
    				</tr>
    			</table>
    			<f:facet name="footer">
	                <rich:datascroller for="ut_id" />
	            </f:facet>
    		</rich:dataGrid>
    	</h:form>
    </ui:define>
</ui:composition>
